package com.timerecording.service.LoginLog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/** 登录日志
 * @author smz41
 * @description: TODO
 * @date 2025/1/27
 */

@TableName("t_login_log")
@Builder
@Data
public class LoginLogEntity {

    @TableId(type = IdType.AUTO)
    private Long loginLogId;

    /**
     * 用户id
     */
    @Schema(defaultValue = "用户id")
    private Long userId;

    /**
     * 用户类型
     */
    @Schema(defaultValue = "用户类型")
    private Integer userType;

    /**
     * 用户名
     */
    @Schema(defaultValue = "用户名")
    private String userName;

    /**
     * 登录ip
     */
    @Schema(defaultValue = "登录ip")
    private String loginIp;

    /**
     * 登录ip地区
     */
    @Schema(defaultValue = "登录ip地区")
    private String loginIpRegion;

    /**
     * user-agent
     */
    @Schema(defaultValue = "user-agent")
    private String userAgent;

    /**
     * 备注
     */
    @Schema(defaultValue = "备注")
    private String remark;

    /**
     * 登录类型
     */
    @Schema(defaultValue = "登录类型")
    private Integer loginResult;


    @Schema(defaultValue = "更新时间")
    private LocalDateTime updateTime;


    @Schema(defaultValue = "更新时间")
    private LocalDateTime createTime;



}
